package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiDingDan;
import cn.com.api.entity.ApiT_points_rule;
import cn.com.util.*;


public interface ApiT_points_ruleMapper {
	/** 插入 */
	public void insertApiT_points_rule(ApiT_points_rule points_rule);
	/** 更新 */
	public void updateApiT_points_rule(ApiT_points_rule points_rule);
	
	/** 根据条件查询列表 */
	public List<ApiT_points_rule> findByConditionsListPage(@Param("conditions")Map<String,Object> conditions,
			@Param("page")PageInfo pageInfo);
	
	/** 根据id获取积分规则 */
	public ApiT_points_rule searchPointsRuleById(@Param("id")String id);
	
	/** 根据id删除积分规则 */
	public void deletePointsRuleById(@Param("id")String id);
	
	/** 校验日期是否有冲突 */
	public List<ApiT_points_rule> checkDate(ApiT_points_rule points_rule);
	
	/** 查询订单所包含的积分规则 */
	public List<ApiT_points_rule> searchPointsRuleByOrder(@Param("orderId")String orderId);
	
}